﻿@model Beeldbankmvc.Models.MaintenanceModel

@using Beeldbankmvc.Code
@{
    ViewBag.Title = "Systeembeheer";
    Layout = "~/Views/Shared/Layout.cshtml";
    Html.RenderAction("AdminMenu", "Miscellaneous");
}

<h2>@ViewBag.Title</h2>

<div style="float: right; margin-right: 24px;">
    <a href="@Url.Action("CleanupErrors", "Maintenance")">
        <img alt="Opruimen Foutmeldingen" title="Opruimen Foutmeldingen" src="@AppHelper.getContent("~/Content/images/icon_clearerrors_32px.gif")" /></a>
    <a href="@Url.Action("UpdateKeyWords", "Maintenance")">
        <img alt="Bijwerken Trefwoord counters" title="Bijwerken Trefwoord counters" src="@AppHelper.getContent("~/Content/images/icon_hostsettings_32px.gif")" /></a>
</div>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend style="color:Red">&nbsp;<br />@Html.DisplayTextFor(model => model.Status)&nbsp;</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.SQL)
        </div>
        <div style="clear:both; width: 690px;">
            @Html.TextAreaFor(model => model.SQL, 10, 15, null)
            @Html.ValidationMessageFor(model => model.SQL)
        </div>

        <div>
            <input type="submit" value="Uitvoeren" /><img alt="Database query uitvoeren" title="Database query uitvoeren" src="@AppHelper.getContent("~/Content/images/icon_sql_16px.gif")" />
        </div>
    </fieldset>
}
